package com.tool.imp.ia;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.tool.imp.BillVO;
import com.tool.imp.EntryVO;
import com.tool.imp.FieldVO;

public class ProInBillVO extends BillVO {

	
	private static Map<String, FieldVO> fieldMap;
	
	public Map<String, FieldVO> getFieldMap() {
		return fieldMap;
	}
	
	static {
		fieldMap = new HashMap<String, FieldVO>();
		// 注册数据字段
		//单据ID
		fieldMap.put("cbillid", new FieldVO("cbillid", String.class, "cbillid"));
		//单据号
		fieldMap.put("vbillcode", new FieldVO("vbillcode", String.class, "vbillcode"));
		//单据日期
		fieldMap.put("dbilldate", new FieldVO("dbilldate", String.class, "dbilldate"));
		//制单时间
		fieldMap.put("tmaketime", new FieldVO("tmaketime", String.class, "tmaketime"));		
		//最后修改时间
		fieldMap.put("tlastmaketime", new FieldVO("tlastmaketime", String.class, "tlastmaketime"));
		//收发类别
		fieldMap.put("cdispatchid", new FieldVO("cdispatchid", String.class, "cdispatchid"));
		//仓管员
		fieldMap.put("cwarehousemanagerid", new FieldVO("cwarehousemanagerid", String.class, "cwarehousemanagerid"));
		//检验单号
		fieldMap.put("vcheckbillcode", new FieldVO("vcheckbillcode", String.class, "vcheckbillcode"));
		//客商基本档案
		fieldMap.put("ccustomvendorbasid", new FieldVO("ccustomvendorbasid", String.class, "ccustomvendorbasid"));
		//客商管理档案
		fieldMap.put("ccustomvendorid", new FieldVO("ccustomvendorid", String.class, "ccustomvendorid"));
		//公司
		fieldMap.put("pk_corp", new FieldVO("pk_corp", String.class, "pk_corp"));
		//单据类型,采购入库单为I2,产成品入库单为I3,其他入库单为I4,销售成本结转单为I5,材料入库单为I6
		fieldMap.put("cbilltypecode", new FieldVO("cbilltypecode", String.class, "cbilltypecode"));
		//收发标志
		fieldMap.put("fdispatchflag", new FieldVO("fdispatchflag", Integer.class, "fdispatchflag"));
		//业务类型标识
		fieldMap.put("cbiztypeid", new FieldVO("cbiztypeid", String.class, "cbiztypeid"));
		//操作员
		fieldMap.put("coperatorid", new FieldVO("coperatorid", String.class, "coperatorid"));
		//最后操作员
		fieldMap.put("clastoperatorid", new FieldVO("clastoperatorid", String.class, "clastoperatorid"));
		//部门标识
		fieldMap.put("cdeptid", new FieldVO("cdeptid", String.class, "cdeptid"));
		//库存组织
		fieldMap.put("crdcenterid", new FieldVO("crdcenterid", String.class, "crdcenterid"));
		//库存组织
		fieldMap.put("cstockrdcenterid", new FieldVO("cstockrdcenterid", String.class, "cstockrdcenterid"));
		//仓库
		fieldMap.put("cwarehouseid", new FieldVO("cwarehouseid", String.class, "cwarehouseid"));
		//打印次数,默认为0
		fieldMap.put("iprintcount", new FieldVO("iprintcount", Integer.class, "iprintcount"));
		//备注
		fieldMap.put("vnote", new FieldVO("vnote", String.class, "vnote"));
		//业务员
		fieldMap.put("cemployeeid", new FieldVO("cemployeeid", String.class, "cemployeeid"));
		//
		fieldMap.put("idebtflag", new FieldVO("idebtflag", Integer.class, "idebtflag"));
		fieldMap.put("bauditedflag", new FieldVO("bauditedflag", String.class, "bauditedflag"));
		fieldMap.put("bdisableflag", new FieldVO("bdisableflag", String.class, "bdisableflag"));
		fieldMap.put("bestimateflag", new FieldVO("bestimateflag", String.class, "bestimateflag"));
		fieldMap.put("boutestimate", new FieldVO("boutestimate", String.class, "boutestimate"));
		fieldMap.put("bwithdrawalflag", new FieldVO("bwithdrawalflag", String.class, "bwithdrawalflag"));
		//会计月份
		fieldMap.put("caccountmonth", new FieldVO("caccountmonth", String.class, "caccountmonth"));
		//会计年份
		fieldMap.put("caccountyear", new FieldVO("caccountyear", String.class, "caccountyear"));
		//分录
		fieldMap.put("entries", new FieldVO("entries", EntryVO.class, null));
	}
	
	@SuppressWarnings("rawtypes")
	public ProInBillVO() {
		super();
		setList("entries", new ArrayList());
	}

	//单据分录
	@SuppressWarnings("unused")
	private List<ProInBillEntryVO> entries;
	
	/**
	 * 分组字段 可用于做归集 
	 * 若不设置，每行记录作为一条数据库对应单据记录
	 */
	protected String getBizNumberField() {
		return "vbillcode";
	}
	
	public String getTableName() {
		return "ia_bill";
	}
	
	public String getPKField() {
		return "cbillid";
	}
	
	/**
	 * 字段的get和set方法
	 * @return
	 */
	public String getCbillid() {
		return getString("cbillid");
		
	}
	public void setCbillid(String cbillid) {
		setString("cbillid",cbillid);
	}
	public String getVbillcode() {
		return getString("vbillcode");
		
	}
	public void setVbillcode(String vbillcode) {
		setString("vbillcode",vbillcode);
	}
	public String getCbilltypecode() {
		return getString("cbilltypecode");
	}
	public void setCbilltypecode(String cbilltypecode) {
		setString("cbilltypecode",cbilltypecode);
	}
	public String getCdispatchid() {
		return getString("cdispatchid");
	}
	public void setCdispatchid(String cdispatchid) {
		setString("cdispatchid",cdispatchid);
	}
	public int getFdispatchflag() {
		return getInteger("fdispatchflag");
	}
	public void setFdispatchflag(int fdispatchflag) {
		setInteger("fdispatchflag",fdispatchflag);
	}
	public String getCbiztypeid() {
		return getString("cbiztypeid");
	}
	public void setCbiztypeid(String cbiztypeid) {
		setString("cbiztypeid",cbiztypeid);
	}
	public String getPk_corp() {
		return getString("pk_corp");
	}
	public void setPk_corp(String pk_corp) {
		setString("pk_corp",pk_corp);
	}
	public String getCoutcorpid() {
		return getString("coutcorpid");
	}
	public void setCoutcorpid(String coutcorpid) {
		setString("coutcorpid",coutcorpid);
	}
	public String getCothercorpid() {
		return getString("cothercorpid");
	}
	public void setCothercorpid(String cothercorpid) {
		setString("cothercorpid",cothercorpid);
	}
	public String getCwarehouseid() {
		return getString("cwarehouseid");
	}
	public void setCwarehouseid(String cwarehouseid) {
		setString("cwarehouseid",cwarehouseid);
	}
	public String getCrdcenterid() {
		return getString("crdcenterid");
	}
	public void setCrdcenterid(String crdcenterid) {
		setString("crdcenterid",crdcenterid);
	}
	
	public String getCstockrdcenterid() {
		return getString("cstockrdcenterid");
	}

	public void setCstockrdcenterid(String cstockrdcenterid) {
		setString("cstockrdcenterid",cstockrdcenterid);
	}

	public String getCoutcalbodyid() {
		return getString("coutcalbodyid");
	}
	public void setCoutcalbodyid(String coutcalbodyid) {
		setString("coutcalbodyid",coutcalbodyid);
	}
	public String getCothercalbodyid() {
		return getString("cothercalbodyid");
	}
	public void setCothercalbodyid(String cothercalbodyid) {
		setString("cothercalbodyid",cothercalbodyid);
	}
	public String getCdeptid() {
		return getString("cdeptid");
	}
	public void setCdeptid(String cdeptid) {
		setString("cdeptid",cdeptid);
	}
	public String getCoperatorid() {
		return getString("coperatorid");
	}
	public void setCoperatorid(String coperatorid) {
		setString("coperatorid",coperatorid);
	}
	public String getCcustomvendorid() {
		return getString("ccustomvendorid");
	}
	public void setCcustomvendorid(String ccustomvendorid) {
		setString("ccustomvendorid",ccustomvendorid);
	}
	public String getCcustomvendorbasid() {
		return getString("ccustomvendorbasid");
	}
	public void setCcustomvendorbasid(String ccustomvendorbasid) {
		setString("ccustomvendorbasid",ccustomvendorbasid);
	}
	
	
	public String getVcheckbillcode() {
		return getString("vcheckbillcode");
	}
	public void setVcheckbillcode(String vcheckbillcode) {
		setString("vcheckbillcode",vcheckbillcode);
	}
	public String getCwarehousemanagerid() {
		return getString("cwarehousemanagerid");
	}
	public void setCwarehousemanagerid(String cwarehousemanagerid) {
		setString("cwarehousemanagerid",cwarehousemanagerid);
	}
	public String getDcheckdate() {
		return getString("dcheckdate");
	}
	public void setDcheckdate(String dcheckdate) {
		setString("dcheckdate",dcheckdate);
	}
	public String getTmaketime() {
		return getString("tmaketime");
	}
	public void setTmaketime(String tmaketime) {
		setString("tmaketime",tmaketime);
	}
	
	public String getTlastmaketime() {
		return getString("tlastmaketime");
	}

	public void setTlastmaketime(String tlastmaketime) {
		setString("tlastmaketime",tlastmaketime);
	}

	public String getDbilldate() {
		return getString("dbilldate");
	}
	public void setDbilldate(String dbilldate) {
		setString("dbilldate",dbilldate);
	}
	public int getIprintcount() {
		return getInteger("iprintcount");
	}
	public void setIprintcount(int iprintcount) {
		setInteger("iprintcount",iprintcount);
	}
	public String getVnote() {
		return getString("vnote");
	}

	public void setVnote(String vnote) {
		setString("vnote",vnote);
	}
	
	public String getCemployeeid() {
		return getString("cemployeeid");
	}

	public void setCemployeeid(String cemployeeid) {
		setString("cemployeeid",cemployeeid);
	}
	
	public Integer getIdebtflag() {
		return getInteger("idebtflag");
	}

	public void setIdebtflag(Integer idebtflag) {
		setInteger("idebtflag",idebtflag);
	}

	public String getBauditedflag() {
		return getString("bauditedflag");
	}

	public void setBauditedflag(String bauditedflag) {
		setString("bauditedflag", bauditedflag);
	}

	public String getBdisableflag() {
		return getString("bdisableflag");
	}

	public void setBdisableflag(String bdisableflag) {
		setString("bdisableflag", bdisableflag);
	}

	public String getBestimateflag() {
		return getString("bestimateflag");
	}

	public void setBestimateflag(String bestimateflag) {
		setString("bestimateflag", bestimateflag);
	}

	public String getBoutestimate() {
		return getString("boutestimate");
	}

	public void setBoutestimate(String boutestimate) {
		setString("boutestimate", boutestimate);
	}

	public String getBwithdrawalflag() {
		return getString("bwithdrawalflag");
		
	}

	public String getCaccountmonth() {
		return getString("caccountmonth");
	}

	public void setCaccountmonth(String caccountmonth) {
		setString("caccountmonth",caccountmonth);
	}

	public String getCaccountyear() {
		return getString("caccountyear");
	}

	public void setCaccountyear(String caccountyear) {
		setString("caccountyear",caccountyear);
	}

	public void setBwithdrawalflag(String bwithdrawalflag) {
		setString("bwithdrawalflag", bwithdrawalflag);
	}

	public String getClastoperatorid() {
		return getString("clastoperatorid");
	}

	public void setClastoperatorid(String clastoperatorid) {
		setString("clastoperatorid", clastoperatorid);
	}

	@SuppressWarnings("unchecked")
	public List<ProInBillEntryVO> getEntries() {
		return (List<ProInBillEntryVO>) getList("entries");
	}

	public void setEntries(List<ProInBillEntryVO> entris) {
		setList("entries", entris);
	}

	
}
